package com.umf.b2b.model.register;

import com.umf.b2b.BaseBackNotify;
import com.umpay.dto.UMFResponse.Message;
import com.umpay.util.UMFUtil;

import javax.servlet.http.HttpServletRequest;

/**
 * 
<p>Title:RegisterBackNotify</p>  
<p>Description: �̻��������֪ͨ</p>
<p>Company: UMPAY</p>
 @author lifeng
 */
public class RegisterBackNotify extends BaseBackNotify{
	
	private String reg_date;//ע������YYYYMMDD
	private String order_id;//������,�̻����ɵ�Ψһ���ױ��
	private String mer_date;//��������YYYYMMDD
	private String mer_cust_id;//���̻����
	private String user_id;//�������̻����
	private String p_agreement_id;//���̻�֧��Э���
	private String last_four_cardid;//�����˻��ź���λ
	
	public static RegisterBackNotify getNotifyResult(HttpServletRequest request) throws Exception {
		Message<RegisterBackNotify> response = UMFUtil.getBackReqMessage(request,RegisterBackNotify.class);
		BaseBackNotify baseResponse = convertResult(response, RegisterBackNotify.class);
		if(baseResponse == null)
			return null;
		return (RegisterBackNotify)baseResponse;
	}
	
	public String getMer_id() {
		return mer_id;
	}

	public void setMer_id(String mer_id) {
		this.mer_id = mer_id;
	}
	
	public String getReg_date() {
		return reg_date;
	}
	public void setReg_date(String reg_date) {
		this.reg_date = reg_date;
	}
	public String getOrder_id() {
		return order_id;
	}
	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}
	public String getMer_date() {
		return mer_date;
	}
	public void setMer_date(String mer_date) {
		this.mer_date = mer_date;
	}
	public String getMer_cust_id() {
		return mer_cust_id;
	}
	public void setMer_cust_id(String mer_cust_id) {
		this.mer_cust_id = mer_cust_id;
	}
	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getP_agreement_id() {
		return p_agreement_id;
	}
	public void setP_agreement_id(String p_agreement_id) {
		this.p_agreement_id = p_agreement_id;
	}
	public String getLast_four_cardid() {
		return last_four_cardid;
	}
	public void setLast_four_cardid(String last_four_cardid) {
		this.last_four_cardid = last_four_cardid;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("RegisterBackNotify [reg_date=");
		builder.append(reg_date);
		builder.append(", order_id=");
		builder.append(order_id);
		builder.append(", mer_date=");
		builder.append(mer_date);
		builder.append(", mer_cust_id=");
		builder.append(mer_cust_id);
		builder.append(", user_id=");
		builder.append(user_id);
		builder.append(", p_agreement_id=");
		builder.append(p_agreement_id);
		builder.append(", last_four_cardid=");
		builder.append(last_four_cardid);
		builder.append("]");
		return builder.toString();
	}
	
}
